package com.drivingtheproject.wifie.types;

/**
 * Created by i046576 on 15.08.2014.
 */
public enum Mode {
Silent(1),
Normal(0),
Vibrate(2);

    private final int _value;
    Mode(int value){_value = value;}
    public int value(){return _value;}

    public static Mode fromInteger(int x) {
        switch(x) {
            case 0:
                return Normal ;
            case 1:
                return Silent;
            case 2:
                return Vibrate;
        }
        return Normal;
    }
}
